#pragma once

#include <iostream>
using namespace std;

class node
{
public:
	node()
	{
		data = 0;
		pPre = NULL;
		pNext = NULL;
	}
	void setdata(int d)		{data = d;}
	void setpPre(node* p)	{pPre = p;}
	void setpNext(node* n)	{pNext = n;}

	int getdata()			{return data;}
	node* getpPre()			{return pPre;}
	node* getpNext()		{return pNext;}
	~node()					{}
private:
	int		data;
	node*	pPre;
	node*	pNext;
};

